package interview.preparation;


public class MaxWithoutOperator {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("MAX " + getMax(5,8));

	}

	static int getMax(int a, int b) {
	    int c = a - b;
	    int k = (c >> 31) & 1;
	    int max = a - k * c;
	    return max;
	}
}
